import { ecs } from 'db://app-game/libs/ecs/ECS';
import { BatchGenerateMonster } from '../Level.type';

/** 地图基础组件 */
@ecs.register('LevelModel')
export class LevelModelComp extends ecs.Comp {
  table: TableLevel = new TableLevel();
  _id: number = -1;
  /** 关卡编号 */
  get id(): number {
    return this._id;
  }
  set id(value: number) {
    this._id = value;
    this.table.init(value);
  }

  /** 怪兽生成机制数据 */
  get batchGenerateMonster(): BatchGenerateMonster {
    return this.table.batchGenerateMonster;
  }

  reset(entity: ecs.Entity): void {}
}
